package com.bidevalution;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

/**
 * @author lance
 */
@Component
public class DruidConfig {
//    @Bean("dataSource")
//    @ConfigurationProperties(prefix = "spring.datasource")
    public DataSource druidDataSource() {
        return new DruidDataSource();
    }
}